/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cart.hibernate.genre;

/**
 *
 * @author BibooChung
 */
import java.util.Set;
import java.util.HashSet;
import cart.hibernate.movieInformation.*;

public class Genre {
    private int genreId;
    private String genreName;

    private Set<MovieInformation> movies = new HashSet<MovieInformation>();

    public Genre(){
    }

    public Genre(String genreName){
            this.genreName = genreName;
    }

    public Genre(Genre genre){
            this.genreName = genre.genreName;
    }

    public int getGenreId(){
    return genreId;
    }
    /**
     * Getter of genreName
     * @return this.genreName
     */
    public String getGenreName(){
        return genreName;
    }

    public Set<MovieInformation> getMovies(){
        return movies;
    }
    
    /**
     * Setter of genreId
     * @param id set genreId to id's value
     */
    public void setGenreId(int id) {
        this.genreId = id;
    }
    /**
     * Setter of genreName
     * @param genreName set genreName to genreName's value
     */
    public void setGenreName(String genreName){
        this.genreName = genreName;
    }

    public void setMovies(Set<MovieInformation> movies){
        this.movies = movies;
    }
}
